package es.us.isa.jdbl.domain.biblio;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.SecondaryTable;
import javax.persistence.SecondaryTables;
import javax.persistence.Table;


@Entity
@SecondaryTables({
	@SecondaryTable(name="content_type_biblio", catalog = "webisa", pkJoinColumns={
			@PrimaryKeyJoinColumn(name="nid", referencedColumnName="nid")}),
})
@DiscriminatorValue("108")
@Table(name="biblio", catalog = "webisa")
public class Thesis extends Biblio{
	@Column(name="biblio_place_published")
	private String address;
	@Column(name="biblio_date")
	private String dateOfPublication;
	@Column(name="biblio_number")
	private String number;
	@Column(name="biblio_issn")
	private String issn;
	@Column(name="biblio_notes")
	private String notes;
	@Column(name="biblio_pages")
	private String pages;
	@Column(name="biblio_publisher")
	private String school;
	@Column(name="biblio_type_of_work")
	private String thesisType;
	@Column(name="biblio_edition")
	private String edition;
	@Embedded
	private QualityThesis quality;
	
	public Thesis(){
		
	}
	
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getDateOfPublication() {
		return dateOfPublication;
	}
	public void setDateOfPublication(String dateOfPublication) {
		this.dateOfPublication = dateOfPublication;
	}
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	public String getIssn() {
		return issn;
	}
	public void setIssn(String issn) {
		this.issn = issn;
	}
	public String getNotes() {
		return notes;
	}
	public void setNotes(String notes) {
		this.notes = notes;
	}
	public String getPages() {
		return pages;
	}
	public void setPages(String pages) {
		this.pages = pages;
	}
	public String getSchool() {
		return school;
	}
	public void setSchool(String school) {
		this.school = school;
	}
	public String getThesisType() {
		return thesisType;
	}
	public void setThesisType(String thesisType) {
		this.thesisType = thesisType;
	}
	public String getEdition() {
		return edition;
	}
	public void setEdition(String edition) {
		this.edition = edition;
	}

	public QualityThesis getQuality() {
		return quality;
	}

	public void setQuality(QualityThesis quality) {
		this.quality = quality;
	}
}
